package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.GradeAuthCgbl;
import com.zhijian.medical.entity.vo.request.GradeAuthCgblSearchVo;
import com.zhijian.medical.entity.vo.response.GradeAuthCgblVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GradeAuthCgblMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GradeAuthCgbl record);

    int insertSelective(GradeAuthCgbl record);

    GradeAuthCgbl selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GradeAuthCgbl record);

    int updateByPrimaryKey(GradeAuthCgbl record);

    /**
     * 查询总数
     *
     * @param gradeAuthCgblSearchVo
     * @return
     */
    int count(GradeAuthCgblSearchVo gradeAuthCgblSearchVo);

    /**
     * 查询列表
     *
     * @param gradeAuthCgblSearchVo
     * @return
     */
    List<GradeAuthCgblVo> selectList(GradeAuthCgblSearchVo gradeAuthCgblSearchVo);

    /**
     * 查询单个
     *
     * @param gradeAuthCgblSearchVo
     * @return
     */
    GradeAuthCgblVo selectOne(GradeAuthCgblSearchVo gradeAuthCgblSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    GradeAuthCgblVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param gradeAuthCgblSearchVo
     * @return
     */
    void deleteByCondition(GradeAuthCgblSearchVo gradeAuthCgblSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<GradeAuthCgbl> entities);

    /**
     * 根据PersonId查询列表
     *
     * @param personId
     * @return
     */
    List<GradeAuthCgblVo> selectListByPersonId(Long personId);
}